package com.flushbonading.classsystem.controller;

import com.flushbonading.classsystem.service.ConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * @author zyx 2134208960@qq.com
 * @date 2021/11/9 17:00
 * @since 1.0.0
 */
@RestController
@RequestMapping("/config")
public class ConfigController {
    @Autowired
    private ConfigService configService;

    @GetMapping("/getConfig")
    public List<Map<String, Object>> getConfig(@RequestParam("content") String content){
        return configService.getConfig(content);
    }
}
